package com.atguigu.test.po;

/**
 * @author zp
 * @version 1.0
 * @description: 演示DI 和IOC的 mode对象
 * @date 2022/9/2 19:16
 */

public class User {
    private  String userName;

    public User(String userName) {
        this.userName = userName;
    }

    public User(){

    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void add(){
        System.out.println("add------"+userName);
    }

    public void init(){
        System.out.println("user 的初始化方法");
    }

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                '}';
    }
}
